package old.apiday02;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line="6dshh567h865hfd69s5hy6fd59";
        String[] data=line.split("[0-9]+", 2);
        System.out.println(Arrays.toString(data));

        line="123.54.646.64";
        data=line.split("\\.");
        System.out.println(Arrays.toString(data));

        line=".21.344.3..34..345......";
        data=line.split("\\.");
        System.out.println(Arrays.toString(data));

    }
}

